<template>
  <div>
    <el-input v-model="mobile" placeholder="请输入手机号"></el-input>
    <el-input v-model="password" placeholder="请输入密码"></el-input>
    <el-button @click="bang">绑定</el-button>
  </div>
</template>

<script>
export default {
    data(){
        return{
            mobile:'',
            password:""
        }
    },
    methods:{
        bang(){
            var data={'mobile':this.mobile,'uid':this.$route.query.uid,'token':this.$route.query.token,'password':this.password}
            this.axios.post('bang',data)
            .then(res=>{
                if(res.data.code==200){
                    localStorage.setItem('token',res.data.token)
                     localStorage.setItem('userid',res.data.userid)
                }
            })
        }
    }

}
</script>

<style>

</style>